package com.hzeng.util;

import java.io.File;

import org.dom4j.Document;
import org.dom4j.io.SAXReader;

public class XMLUtil {
	public static Document getXMLDoc(String filePath){		
		try {
			File file = new File(filePath);
			SAXReader reader = new SAXReader();
			return reader.read(file);
		}
		catch (Exception e) {
			e.printStackTrace();
			return null;
		} 
	}
}
